import * as React from "react"
import * as  ReactDom from "react-dom";
import { WatchHandler,Watcher } from "./proxytest";
let watcher=new Watcher((obj,target,targetpath)=>{
    console.log(targetpath,target);
});
let data=watcher.toProxiedData({
    hello:"test",
    bbb:11222
});
function testBtn()
{
    data.bbb+=1;
}
let TestNode=<div className={data.hello}>
    {data.bbb}
    <button onClick={testBtn}>测试按钮{data.hello}</button>
</div>

const root=document.getElementById("approot");
ReactDom.render(TestNode,root);



